<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>加载动画示例</title>
    <style>
      .loading-dots {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 20px;
      }
      .dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
        background-color: #333;
        border-radius: 50%;
        opacity: 0.3;
        animation: jump 1.2s infinite ease-in-out;
      }
      .dot:nth-child(1) {
        animation-delay: 0s;
      }
      .dot:nth-child(2) {
        animation-delay: 0.2s;
      }
      .dot:nth-child(3) {
        animation-delay: 0.4s;
      }
      @keyframes jump {
        0%,
        80%,
        100% {
          transform: translateY(0);
          opacity: 0.3;
        }
        40% {
          transform: translateY(-10px);
          opacity: 1;
        }
      }
    </style>
  </head>
  <body>
    <div id="loading" class="loading-dots">
      <div class="dot"></div>
      <div class="dot"></div>
      <div class="dot"></div>
    </div>

    <script></script>
  </body>
</html>
